// TOP10销量
import { reactive } from "vue";
export function useSalesVolume() {
    const topGoodData = reactive([
        { name: "iPhone 15 Pro", price: 7999, sales: 9850, value: 9850, img: "https://dummyimage.com/64x64/007aff/fff&text=iP15P" },
        { name: "华为 Mate 60", price: 6499, sales: 8720, value: 8720, img: "https://dummyimage.com/64x64/ff3b30/fff&text=M60" },
        { name: "小米 14 Ultra", price: 5999, sales: 7680, value: 3920, img: "https://dummyimage.com/64x64/ff9500/fff&text=Mi14U" },
        { name: "MacBook Air M3", price: 9499, sales: 6540, value: 3920, img: "https://dummyimage.com/64x64/34c759/fff&text=MBA" },
        { name: 'iPad Pro 11"', price: 6799, sales: 5890, value: 3920, img: "https://dummyimage.com/64x64/af52de/fff&text=iPad" },
        { name: "Switch OLED", price: 2599, sales: 5320, value: 3920, img: "https://dummyimage.com/64x64/ff2d92/fff&text=NSO" },
        { name: "索尼 WH-1000XM5", price: 2299, sales: 4910, value: 3920, img: "https://dummyimage.com/64x64/5e5ce6/fff&text=XM5" },
        { name: "AirPods Pro 2", price: 1899, sales: 4630, value: 3920, img: "https://dummyimage.com/64x64/007aff/fff&text=APP2" },
        { name: "罗技 MX Master 3S", price: 699, sales: 4280, value: 3920, img: "https://dummyimage.com/64x64/8e8e93/fff&text=MX3S" },
        { name: "Kindle Paperwhite 5", price: 998, sales: 3920, value: 3920, img: "https://dummyimage.com/64x64/48484a/fff&text=KPW5" },
    ]);
    const fields = { name: "title", price: "current_price", sales: "sold_num", img: "pic" };
    const color = ["#ff9a9e", "#fad0c4"];
    return { topGoodData, fields, color };
}
